{"version":3,"file":"calendar.min.js","sources":["calendar.js"],"names":["phpVars","ADMIN_THEME_ID","LANGUAGE_ID","FORMAT_DATE","FORMAT_DATETIME","opt_context_ctrl","cookiePrefix","titlePrefix","bitrix_sessid","messHideMenu","messShowMenu","messHideButtons","messShowButtons","messFilterInactive","messFilterActive","messFilterLess","messLoading","messMenuLoading","messMenuLoadingTitle","messNoData","messExpandTabs","messCollapseTabs","messPanelFixOn","messPanelFixOff","messPanelCollapse","messPanelExpand","JCAdminCalendar","_this","this","mess","floatDiv","content","dateInitial","Date","dateCurrent","dateCreate","bTime","bFirst","menu","form","field","fieldFrom","fieldTo","head","document","getElementsByTagName","link","createElement","rel","href","top","jsUtils","IsOpera","appendChild","Show","obj","serverTime","Close","FindParentObject","input","getElementsByName","i","difference","valueOf","getTimezoneOffset","ParseDate","elements","value","setTime","setHours","div","body","id","className","style","position","left","zIndex","BX","WindowManager","Get","hoursSpin","JCSpinner","minutesSpin","secondsSpin","innerHTML","Number","getHours","getMinutes","getSeconds","FindChildObject","GetMonthPage","pos","GetRealPos","AlignToPos","offsetWidth","offsetHeight","jsFloatDiv","setTimeout","addEvent","CheckClick","OnKeyPress","aMonths","initYear","getFullYear","initMonth","getMonth","initDay","getDate","today","bCurMonth","getElementById","s","getMonthFirst","getMonthLast","getYearFirst","getYearLast","firstDate","firstDay","getDay","date","bBreak","row","setDate","nWeek","WeekNumber","j","d","sClass","firstYearDate","firstYearDay","nDays","Math","round","NavigateToday","h","m","jsAdminCalendar","NavigateMonth","mon","setMonth","NavigateYear","year","setFullYear","InsertDaysBack","days","FormatDate","disabled","ValueToString","forms","float_calendar_time","parseInt","hours","setMinutes","minutes","setSeconds","seconds","CurrentTime","time","onchange","ClearTime","InsertDate","fireEvent","InsertPeriod","value1","value2","val","format","str","replace","isAmPmMode","hour","amPm","aDate","split","aFormat","length","cnt","aDateArgs","aFormatArgs","trim","aResult","undefined","match","toUpperCase","getNumMonth","toLowerCase","isNaN","MenuMonth","a","items","ICONCLASS","TEXT","ONCLICK","DEFAULT","ShowMenu","MenuYear","y","item_year","PopupMenu","Create","OnClose","IsVisible","SetItems","BuildItems","removeEvent","PopupShow","ToggleTime","display","title","blur","AdjustShadow","TimeChange","name","parentNode","removeChild","e","window","event","keyCode","windowSize","GetWindowSize","x","clientX","scrollLeft","clientY","scrollTop","arPos","right","bottom","mousedown","Start","delta","MouseUp","ChangeValue"],"mappings":"AAAA,GAAIA,QACJ,KAAIA,QACJ,CACCA,SACCC,eAAgB,WAChBC,YAAa,KACbC,YAAa,aACbC,gBAAiB,sBACjBC,iBAAkB,MAClBC,aAAc,YACdC,YAAa,GACbC,cAAe,GACfC,aAAc,GACdC,aAAc,GACdC,gBAAiB,GACjBC,gBAAiB,GACjBC,mBAAoB,GACpBC,iBAAkB,GAClBC,eAAgB,GAChBC,YAAa,aACbC,gBAAiB,GACjBC,qBAAsB,GACtBC,WAAY,GACZC,eAAgB,GAChBC,iBAAkB,GAClBC,eAAgB,GAChBC,gBAAiB,GACjBC,kBAAmB,GACnBC,gBAAiB,IAInB,QAASC,mBAER,GAAIC,GAAQC,IACZA,MAAKC,OACLD,MAAKE,SAAW,IAChBF,MAAKG,QAAU,IACfH,MAAKI,YAAc,GAAIC,KACvBL,MAAKM,YAAc,IACnBN,MAAKO,WAAa,GAAIF,KACtBL,MAAKQ,MAAQ,KACbR,MAAKS,OAAS,IACdT,MAAKU,KAAO,IACZV,MAAKW,KAAOX,KAAKY,MAAQZ,KAAKa,UAAYb,KAAKc,QAAU,IAGzD,IAAIC,GAAOC,SAASC,qBAAqB,OACzC,IAAGF,EACH,CACC,GAAIG,GAAOF,SAASG,cAAc,OAClCD,GAAKE,IAAM,YACXF,GAAKG,KAAO,kBAAkBC,IAAIlD,QAAQC,eAAe,iBAAiBiD,IAAIC,QAAQC,UAAW,GAAG,IAAIxB,KAAKC,KAAK,WAClHc,GAAK,GAAGU,YAAYP,GAIrBlB,KAAK0B,KAAO,SAASC,EAAKf,EAAOC,EAAWC,EAAS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